export function setStorage(param){
    let obj ={
        ...param
    }
    window.localStorage.setItem(obj.name, obj.val);
}

export function getStorage({name}){
    return  window.localStorage.getItem(name);
}